package lr.com.demo.dao.impl;

import java.io.Serializable;

import lr.com.demo.dao.RedisDao;

import org.springframework.data.redis.core.RedisTemplate;

public class RedisDAOImpl implements RedisDao {
	private RedisTemplate<String, String> redisTemplate = null;  
	  
    public RedisDAOImpl() {  
  
    }  
  
  
    public void sendMessage(String channel, Serializable message) {  
        redisTemplate.convertAndSend(channel, message);  
    }  
  
  
    public RedisTemplate getRedisTemplate() {  
        return redisTemplate;  
    }  
  
    public void setRedisTemplate(RedisTemplate redisTemplate) {  
        this.redisTemplate = redisTemplate;  
    }  
}
